<?php
require_once 'classes/mySession.php';

## CHECK IF THE USER IS ALREADY LOGGED IN (USING SESSION)
if($pgSession->isUserLoggedIn()){
	## IF YES, REDIRECT TO HOME PAGE
	$pgSession->redirect("./home.php");
}else{
	## IF NOT, REDIRECT TO LOGIN PAGE
	$pgSession->redirect("./login.php");
	
}
?>